<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
${aier_doctype}
<html <s:property value="aier_html_xmlns" escape="false"/>>
<head>
<meta http-equiv="Content-Type" content="${aier_content_type}" />
<meta name="keywords" content="${aier_keyworks}" />
<meta name="description" content="${aier_description}" />
<title>${aier_title}</title>
<link rel="stylesheet" href="${aier_css_url}${aier_jqui_css}ui.css" />
<link rel="Stylesheet" href="${aier_css_url}jq/jq.css" />
<link rel="Stylesheet" href="${aier_css_url}jq/multiselect.css" />
<link rel="stylesheet" href="${aier_css_url}jc/chosen.css">
<link rel="stylesheet" href="${aier_css_url}social/module/jq-msg.css" />
<link rel="stylesheet" href="${aier_css_url}social/user/userreg/userreg.css">

<script type="text/javascript" src="${aier_js_url}j.js"></script>
<script type="text/javascript" src="${aier_js_url}b.js"></script>
<script type="text/javascript" src="${aier_js_url}${aier_jqui_js}ui.js"></script>
<script type="text/javascript" src="${aier_js_url}97/WdatePicker.js"></script>
<script type="text/javascript" src="${aier_js_url}jp/msg.js"></script>
<script type="text/javascript" src="${aier_js_url}jq/cn.js"></script>
<script type="text/javascript" src="${aier_js_url}jq/jq.js"></script>
<script type="text/javascript" src="${aier_js_url}lib/ja.js"></script>
<script type="text/javascript" src="${aier_js_url}jc/cj.js"></script>
<script type="text/javascript" src="${aier_js_url}lib/block.js"></script>
<script type="text/javascript" src="${aier_js_url}jq/multiselect.js"></script>
</head>
<body>
	<!-- 登录页面 -->
	<div class="userlogin-wrap">
		<div class="userlogin-title">
		</div>

		<div class="userlogin-box">
			<div class="topborder"></div>
			<div class="main">
				<div class="mod-a">
					<em class="icon-dot"></em> 登陆爱儿360
				</div>

				<div class="clearfix">

					<div class="show-photo">
						<div class="img">
							<img src="${aier_img_url}social/userCenter/logincover1.jpg"
								alt="">
						</div>
					</div>

					<div class="login-function">
						<div class="mod-b"></div>
						<div class="form-section">
							<form action="">
								<div class="line clearfix">
									<div class="input-name">账号</div>
									<div class="input-area clearfix">
										<div class="input-normal">
											<input type="text" name="phoneNumber" id="phoneNumber" onKeyPress="jumpPassword(event)">
										</div>
									</div>
								</div>
								<div class="line clearfix">
									<div class="input-name">密码</div>
									<div class="input-area clearfix">
										<div class="input-normal">
											<input type="password" name="password" id="password" onKeyPress="jumpLogin(event)">
										</div>
									</div>
								</div>
								<div class="pwd-function clearfix">
									<div class="remember">
										<input id="rememberPwd" name="rememberPwd" type="checkbox"><label for="rememberPwd">记住密码</label>
									</div>
									<div class="forget">
										<a href="${aier_url}${aier_uri}retpwd_identitiesVerify${aier_suffix}">忘记密码</a>
									</div>
								</div>
								<div class="btnbar">
									<div class="login">
										<a class="btn-login" href="javascript:void(0);" id="regNow"
											onclick="user_login();"> <span>登陆</span> </a>
									</div>
								</div>

								<div class="other">
									<!--  <div class="login-link">
										没有账号，<a href="${aier_url}${aier_uri}userregindex.shtml">立即注册&raquo; </a>
									</div>-->
								</div>
							</form>
						</div>
					</div>
				</div>
			</div>
			<!-- 白底矩形区结束 -->
			<div class="bottomborder">
			</div>
		</div>
	</div>

<script type="text/javascript">
function jumpPassword(event) {
	var keycode = event.keyCode || event.which;
	if (keycode == 13) {
		$('#password').focus();
	} else {
		return false;
	}
}

function jumpLogin(event) {
	var keycode = event.keyCode || event.which;
	if (keycode == 13) {
		user_login();
	} else {
		return false;
	}
}

function user_login(){
	var account = $("#phoneNumber").val();
	var pwd = $("#password").val();
	var rememberMe = $('#rememberPwd').attr("checked") == "checked";
	if(account==""||pwd==""){
		$().message("请输入用户名密码");
		return
	}

	var fun = function(data) {
		if(data.s==1001){
			 window.location.href = "${aier_url}proxy/proxycenter${aier_suffix}?pid="+data.pid;
		}else{
			$().message("登陆失败!");
		}
	};
	exeAjax(ajaxUrl("${aier_url}${aier_urijs}aplogin_proxyLogin${aier_suffix}"), fun, {
		"account" : account,
		"pwd" : pwd
	});
}

function check_phone(phone){
	//var regu = /^[1]([3-8][0-9]{1}|59|58|88|89)[0-9]{8}$/;
	//var isphone = regu.exec(phone);
	//if(isphone!=null){
	//	return "true";
	//}else{
	//	return "fasle";					
	//}			
}

//进入页面后按下光标转移到账号输入框
function accountTextfocus() {
	$('#phoneNumber').focus();

}
accountTextfocus();

</script>
</body>
</html>